#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>

//int  main(int argc,char** argv)
//{
//    int i = 0;
//    for (;argv[i];i++)
//    {
//        printf("argv[%d]->%s\n",i,argv[i]);
//    }
//
//    return 0;
//}
int a;
int b = 1;

int main()
{
    int *c = (int*)malloc(sizeof(int));
    const char * str = "1234";

    printf("栈区:%p\n",&c);
    printf("堆区:%p\n",c);
    printf("未初始化全局变量:%p\n",&a);
    printf("已初始化全局变量:%p\n",&b);
    printf("常量区:%p\n",str);
    printf("代码和数据段%p\n",main);
    return 0;
}
